"""
@File    ：el_checkin_apply_for.py
@Author  ：ixiaodu
@Date    ：2024/5/14
@Desc    ：
"""
from selenium.webdriver.common.by import By

# 审核界面元素配置信息
checkin_apply_for_btn = By.XPATH, "//uni-view[4]"

ss_room_use = By.XPATH, "//uni-view[3]/uni-view/uni-view"
xfss_room_use = By.XPATH, "//uni-view[4]/uni-view/uni-view"
fqf_room_use = By.XPATH, "//uni-view[5]/uni-view/uni-view"

cg_application_type = By.CSS_SELECTOR, ".full-width > .card-container:nth-child(2) > .cell-width"
yyd_application_type = By.CSS_SELECTOR, ".full-width > .card-container:nth-child(3) > .cell-width"
yy_application_type = By.CSS_SELECTOR, ".full-width > .card-container:nth-child(4) > .cell-width"
zjd_application_type = By.CSS_SELECTOR, ".full-width > .card-container:nth-child(5) > .cell-width"

xf_cg_application_type = By.XPATH, "//uni-view[6]/uni-view[2]"
xf_yy_application_type = By.XPATH, "//uni-view[6]/uni-view[3]"

area_btn = By.XPATH, "//uni-view[3]/uni-text"
area_btn_fqf = By.CSS_SELECTOR, ".cell-group-container:nth-child(5) .u-icon__icon"
area = By.XPATH, "//uni-app/div/div[2]/div[2]/div[2]"  # 最后一个div[2]表示第2个选项

couple_room_icon = By.CSS_SELECTOR, "uni-view:nth-child(3) > uni-picker .u-icon__icon"
couple_room_yes = By.XPATH, "//uni-app/div/div[2]/div[2]/div"

employed_couple_icon = By.CSS_SELECTOR, "uni-view:nth-child(4) > uni-picker .u-icon__icon"
employed_couple_yes = By.XPATH, "//uni-app/div/div[2]/div[2]/div"

select_member_icon = By.CSS_SELECTOR, "uni-view > .u-field .u-icon__icon"
select_member_search = By.XPATH, "//input[@type='search']"
search_btn = By.CSS_SELECTOR, ".u-action"
select_member = By.CSS_SELECTOR, ".card-container"

certificate_upload = By.CSS_SELECTOR, ".u-list-item"

room_icon = By.CSS_SELECTOR, "uni-view > .u-field .u-icon__icon"
building = By.XPATH, "//div/uni-view/uni-view"
floor = By.CSS_SELECTOR, ".floor-item:nth-child(2)"  # child(2)表示2楼
room = By.CSS_SELECTOR, ".house-container__house-item:nth-child(2)"  # child(2)表示第2间
bed_icon = By.CSS_SELECTOR, "uni-view:nth-child(5) .u-icon__icon"
bed = By.XPATH, "//uni-app/div/div[2]/div[2]/div[2]"  # div[2]表示第2个床位

checkin_start_date = By.XPATH, "//input[@type='date']"
checkin_end_date = By.XPATH, "(//input[@type='date'])[2]"

remark = By.CSS_SELECTOR, ".uni-textarea-textarea"

username = By.XPATH, "(//input[@type=''])[4]"
phone_number = By.XPATH, "(//input[@type=''])[5]"
job_number = By.XPATH, "(//input[@type=''])[6]"

yyd_sex_select = By.CSS_SELECTOR, "uni-view:nth-child(8) .u-icon__icon"
zjd_sex_select = By.CSS_SELECTOR, "uni-view:nth-child(6) .u-icon__icon"
male = By.XPATH, "//uni-app/div/div[2]/div[2]/div"
female = By.XPATH, "//uni-app/div/div[2]/div[2]/div[2]"

submit_btn = By.CSS_SELECTOR, ".submit-button"
submit_affirm_btn = By.CSS_SELECTOR, ".uni-modal__btn_primary"
submit_info = By.CSS_SELECTOR, ".response-info"

# 通过后页面操作
checkin_inform = By.CSS_SELECTOR, ".confirm-button"
checkin_notice_read = By.CSS_SELECTOR, ".uicon-checkmark"
checkin_notice_notarize = By.CSS_SELECTOR, ".ensure-text:nth-child(4)"

ceiling_lamp = By.XPATH, "//div/div/div/uni-view[1]/uni-image/img"
moto = By.XPATH, "//uni-movable-view"
moto2 = By.XPATH, "//uni-view[2]/uni-view/uni-view"

room_change_btn = By.XPATH, "//uni-view[10]"
checkout_btn = By.XPATH, "//uni-view[11]"

